﻿using System;
using System.Collections.Generic;

namespace Meqs.Entity
{
    [Serializable]
	public class StuCauseLevel
	{
		public StuCauseLevel()
		{
			m_RID = 0;

		}
        public StuCauseLevel(int rid,string name,int max,int min,int schoolyear,int term)
        {
            m_RID = rid;
            m_Caption = name;
            m_Max = max;
            m_Min = min;
            m_SchoolYear = schoolyear;
            m_Term = term;
        }
		#region RID
		
		private int m_RID;
		
		public int RID
		{
			get { return m_RID; }
			set { m_RID = value; }
		}
		
		#endregion
		
		#region Caption
		
		private string m_Caption;
		
		public string Caption
		{
			get { return m_Caption; }
			set { m_Caption = value; }
		}
		
		#endregion
		
		#region Max
		
		private int? m_Max;
		
		public int? Max
		{
			get { return m_Max; }
			set { m_Max = value; }
		}
		
		#endregion
		
		#region Min
		
		private int? m_Min;
		
		public int? Min
		{
			get { return m_Min; }
			set { m_Min = value; }
		}
		
		#endregion
		
		#region SchoolYear
		
		private int? m_SchoolYear;
		
		public int? SchoolYear
		{
			get { return m_SchoolYear; }
			set { m_SchoolYear = value; }
		}
		
		#endregion
		
		#region Term
		
		private int? m_Term;
		
		public int? Term
		{
			get { return m_Term; }
			set { m_Term = value; }
		}
		
		#endregion

        #region SchoolMark

        private string schoolmark;

        public string SchoolMark
        {
            get { return schoolmark; }
            set { schoolmark = value; }
        }

        #endregion
		
		#region Rewrite Equals and HashCode
		
		/// <summary>
		/// 
		/// </summary>
		public override bool Equals(object obj)
		{
			if( this == obj ) return true;
			if( ( obj == null ) || ( obj.GetType() != GetType() ) ) return false;
			StuCauseLevel castObj = (StuCauseLevel) obj;
			return ( castObj != null )
 && m_RID == castObj.RID;		}
		
		/// <summary>
		/// 用唯一值实现GetHashCode
		/// </summary>
		public override int GetHashCode()
		{
			int hash = 62;
			hash = hash * 62
 * m_RID.GetHashCode();			return hash;
		}
		
		#endregion
		
		
	}
}